package com.zx.idc.backend.gui.api.management.scheduler.job;

import com.zx.idc.backend.gui.api.management.infosecurity.violationwebsite.management.service.IllegalWebService;
import com.zx.idc.common.spring.SpringBeanUtil;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 11.18 违法违规网站监测数据 主动上报 每天一次
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class ReportIllegalWebJob implements Job {
    private static final Logger LOG = LoggerFactory.getLogger(ReportIllegalWebJob.class);

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        IllegalWebService illegalWebService = SpringBeanUtil.getBean(IllegalWebService.class);
        illegalWebService.illegalWebReport();
        LOG.info("违法违规网站监测数据主动上报job执行成功");
    }
}
